package org.sgx.dao.test.test1.testModel;

import java.util.Date;

import org.sgx.dao.model.Model;

/**
 * model class example.  a tree is also related to one Tree, but this relationship will not be defined at java level, but using framework's Relationship objects 
 */
public class Leaf implements Model {
	Long leafId;
	String color;
	Date bornDate;	
	public Leaf(String color, Date bornDate) {
		this.color = color;
		this.bornDate = bornDate;
	}
	public Leaf(){}
	public String getFieldIdName() {
		return "leafId";
	}
	public Long getLeafId() {
		return leafId;
	}
	public void setLeafId(Long leafId) {
		this.leafId = leafId;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}

	public Date getBornDate() {
		return bornDate;
	}
	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;
	}
}